<!DOCTYPE html>
<html lang="zh-Hans">
<head>

    <!--[if lt IE 9]>
        <style>body {display: none; background: none !important} </style>
        <meta http-equiv="Refresh" Content="0; url=//outdatedbrowser.com/" />
    <![endif]-->

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no" />
<meta name="author" content="zhengweiMao" />



<meta property="og:type" content="article">
<meta property="og:title" content="1.Sigar 获取CPU和Memory内存等信息使用详解">
<meta property="og:url" content="https://maozw.gitee.io/maoge-blog/2018/08/05/花神(maoge)/11.服务器相关/1.服务器--Sigar 获取CPU和Memory内存等信息使用详解/index.html">
<meta property="og:site_name" content="花神">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2018-08-06T15:24:27.167Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="1.Sigar 获取CPU和Memory内存等信息使用详解">

<link rel="apple-touch-icon" href= "/apple-touch-icon.png">


    <link rel="alternate" href="/atom.xml" title="花神" type="application/atom+xml">



    <link rel="shortcut icon" href="/favicon.png">



    <link href="//cdn.bootcss.com/animate.css/3.5.1/animate.min.css" rel="stylesheet">



    <link href="//cdn.bootcss.com/fancybox/2.1.5/jquery.fancybox.min.css" rel="stylesheet">



    <script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
    <link href="//cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-minimal.css" rel="stylesheet">


<link rel="stylesheet" href="/maoge-blog/css/style.css">



<link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">


<title>1.Sigar 获取CPU和Memory内存等信息使用详解 | 花神</title>

<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>

<script>
    var yiliaConfig = {
        fancybox: true,
        animate: true,
        isHome: false,
        isPost: true,
        isArchive: false,
        isTag: false,
        isCategory: false,
        fancybox_js: "//cdn.bootcss.com/fancybox/2.1.5/jquery.fancybox.min.js",
        scrollreveal: "//cdn.bootcss.com/scrollReveal.js/3.1.4/scrollreveal.min.js",
        search: true
    }
</script>


    <script>
        yiliaConfig.jquery_ui = [true, "//cdn.bootcss.com/jqueryui/1.10.4/jquery-ui.min.js", "//cdn.bootcss.com/jqueryui/1.10.4/css/jquery-ui.min.css"];
    </script>



    <script> yiliaConfig.rootUrl = "\/";</script>






</head>
<body>
  <div id="container">
    <div class="left-col">
    <div class="overlay"></div>
<div class="intrude-less">
    <header id="header" class="inner">
        <a href="/maoge-blog/" class="profilepic">
            <img src="img/avatar.png" class="animated zoomIn">
        </a>
        <hgroup>
          <h1 class="header-author"><a href="/maoge-blog/">zhengweiMao</a></h1>
        </hgroup>

        

        
            <form id="search-form">
            <input type="text" id="local-search-input" name="q" placeholder="search..." class="search form-control" autocomplete="off" autocorrect="off" searchonload="" />
            <i class="fa fa-times" onclick="resetSearch()"></i>
            </form>
            <div id="local-search-result"></div>
            <p class='no-result'>No results found <i class='fa fa-spinner fa-pulse'></i></p>
        


        
            <div id="switch-btn" class="switch-btn">
                <div class="icon">
                    <div class="icon-ctn">
                        <div class="icon-wrap icon-house" data-idx="0">
                            <div class="birdhouse"></div>
                            <div class="birdhouse_holes"></div>
                        </div>
                        <div class="icon-wrap icon-ribbon hide" data-idx="1">
                            <div class="ribbon"></div>
                        </div>
                        
                        <div class="icon-wrap icon-link hide" data-idx="2">
                            <div class="loopback_l"></div>
                            <div class="loopback_r"></div>
                        </div>
                        
                        
                        <div class="icon-wrap icon-me hide" data-idx="3">
                            <div class="user"></div>
                            <div class="shoulder"></div>
                        </div>
                        
                    </div>
                    
                </div>
                <div class="tips-box hide">
                    <div class="tips-arrow"></div>
                    <ul class="tips-inner">
                        <li>菜单</li>
                        <li>标签</li>
                        
                        <li>友情链接</li>
                        
                        
                        <li>关于我</li>
                        
                    </ul>
                </div>
            </div>
        

        <div id="switch-area" class="switch-area">
            <div class="switch-wrap">
                <section class="switch-part switch-part1">
                    <nav class="header-menu">
                        <ul>
                        
                            <li><a href="/maoge-blog/">主页</a></li>
                        
                            <li><a href="/maoge-blog/archives/">所有文章</a></li>
                        
                            <li><a href="/maoge-blog/tags/">标签云</a></li>
                        
                            <li><a href="/maoge-blog/categories/">分类</a></li>
                        
                            <li><a href="/maoge-blog/about/">关于我</a></li>
                        
                        </ul>
                    </nav>
                    <nav class="header-nav">
                        <ul class="social">
                            
                                <a class="fa Email" href="mailto:123@123.com" title="Email"></a>
                            
                                <a class="fa GitHub" href="#" title="GitHub"></a>
                            
                                <a class="fa RSS" href="/maoge-blog/atom.xml" title="RSS"></a>
                            
                        </ul>
                    </nav>
                </section>
                
                
                <section class="switch-part switch-part2">
                    <div class="widget tagcloud" id="js-tagcloud">
                        
                    </div>
                </section>
                
                
                
                <section class="switch-part switch-part3">
                    <div id="js-friends">
                    
                      <a class="main-nav-link switch-friends-link" href="https://hexo.io">Hexo</a>
                    
                      <a class="main-nav-link switch-friends-link" href="https://pages.github.com/">GitHub</a>
                    
                      <a class="main-nav-link switch-friends-link" href="http://moxfive.xyz/">MOxFIVE</a>
                    
                    </div>
                </section>
                

                
                
                <section class="switch-part switch-part4">
                
                    <div id="js-aboutme">专注于前端</div>
                </section>
                
            </div>
        </div>
    </header>                
</div>
    </div>
    <div class="mid-col">
      <nav id="mobile-nav">
      <div class="overlay">
          <div class="slider-trigger"></div>
          <h1 class="header-author js-mobile-header hide"><a href="/" title="回到主页">zhengweiMao</a></h1>
      </div>
    <div class="intrude-less">
        <header id="header" class="inner">
            <a href="/maoge-blog/" class="profilepic">
                <img src="img/avatar.png" class="animated zoomIn">
            </a>
            <hgroup>
              <h1 class="header-author"><a href="/maoge-blog/" title="回到主页">zhengweiMao</a></h1>
            </hgroup>
            
            <nav class="header-menu">
                <ul>
                
                    <li><a href="/maoge-blog/">主页</a></li>
                
                    <li><a href="/maoge-blog/archives/">所有文章</a></li>
                
                    <li><a href="/maoge-blog/tags/">标签云</a></li>
                
                    <li><a href="/maoge-blog/categories/">分类</a></li>
                
                    <li><a href="/maoge-blog/about/">关于我</a></li>
                
                <div class="clearfix"></div>
                </ul>
            </nav>
            <nav class="header-nav">
                        <ul class="social">
                            
                                <a class="fa Email" target="_blank" href="mailto:123@123.com" title="Email"></a>
                            
                                <a class="fa GitHub" target="_blank" href="#" title="GitHub"></a>
                            
                                <a class="fa RSS" target="_blank" href="/maoge-blog/atom.xml" title="RSS"></a>
                            
                        </ul>
            </nav>
        </header>                
    </div>
    <link class="menu-list" tags="标签" friends="友情链接" about="关于我"/>
</nav>
      <div class="body-wrap"><article id="post-花神(maoge)/11.服务器相关/1.服务器--Sigar 获取CPU和Memory内存等信息使用详解" class="article article-type-post" itemscope itemprop="blogPost">
  
    <div class="article-meta">
      <a href="/maoge-blog/2018/08/05/花神(maoge)/11.服务器相关/1.服务器--Sigar 获取CPU和Memory内存等信息使用详解/" class="article-date">
      <time datetime="2018-08-04T19:09:50.000Z" itemprop="datePublished">2018-08-05</time>
</a>


    </div>
  
  <div class="article-inner">
    
      <input type="hidden" class="isFancy" />
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      1.Sigar 获取CPU和Memory内存等信息使用详解
    </h1>
  

      </header>
      
      <div class="article-info article-info-post">
        
    <div class="article-category tagcloud">
    <a class="article-category-link" href="/maoge-blog/categories/服务器/">服务器</a>
    </div>


        
        <div class="clearfix"></div>
      </div>
      
    
    <div class="article-entry" itemprop="articleBody">
      
          
        <p><excerpt in="" index="" |="" 首页摘要=""><br><a id="more"></a></excerpt></p>
<the rest="" of="" contents="" |="" 余下全文="">

<h3 id="1-Sigar-获取CPU和Memory内存等信息使用详解"><a href="#1-Sigar-获取CPU和Memory内存等信息使用详解" class="headerlink" title="1.Sigar 获取CPU和Memory内存等信息使用详解"></a>1.Sigar 获取CPU和Memory内存等信息使用详解</h3><h5 id="序言"><a href="#序言" class="headerlink" title="序言"></a>序言</h5><hr>
<ol>
<li>：Sigar<ul>
<li>服务器–Sigar 获取CPU和Memory内存等信息使用详解</li>
</ul>
</li>
</ol>
<hr>
<h5 id="Sigar详细介绍"><a href="#Sigar详细介绍" class="headerlink" title="Sigar详细介绍"></a>Sigar详细介绍</h5><p>&#8195;&#8195;Sigar（System Information Gatherer And Reporter），是一个开源的工具，提供了跨平台的系统信息收集的API，核心由C语言实现的。Sigar资料地址：<a href="https://support.hyperic.com/display/SIGAR/Home" target="_blank" rel="noopener">https://support.hyperic.com/display/SIGAR/Home</a><br>&#8195;&#8195;Sigar提供了一组轻便式接口来收集系统信息，主要信息包含：<br>&#8195;&#8195;● 系统内存，页面交换，cpu，平均负载，运行时间，登录信息；<br>&#8195;&#8195;● 每个进程占用的内存，cpu，帐号信息，状态，参数，环境，打开的文件；<br>&#8195;&#8195;● 文件系统监测和度量；<br>&#8195;&#8195;● 网络接口监测，配置信息和度量；<br>&#8195;&#8195;● TCP和UDP连接表；<br>&#8195;&#8195;● 网络路由表；</p>
<h5 id="下面我们看下示例："><a href="#下面我们看下示例：" class="headerlink" title="下面我们看下示例："></a>下面我们看下示例：</h5><p>&#8195;&#8195;首先工程需要引入netty的jar包<br><figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">dependency</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">groupId</span>&gt;</span>org.fusesource<span class="tag">&lt;/<span class="name">groupId</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">artifactId</span>&gt;</span>sigar<span class="tag">&lt;/<span class="name">artifactId</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">version</span>&gt;</span>1.6.4<span class="tag">&lt;/<span class="name">version</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">dependency</span>&gt;</span></span><br></pre></td></tr></table></figure></p>
<p>添加Sigar 依赖的本地库文件<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">此处解释一下，与普通jar包不同，Sigar API还要依赖本地的库文件来进行工作，其中：</span><br><span class="line"></span><br><span class="line">Windows下Sigar.jar 依赖：sigar-amd64-winnt.dll 或 sigar-x86-winnt.dll</span><br><span class="line">Linux 下Sigar.jar依赖：libsigar-amd64-linux.so 或 libsigar-x86-linux.so</span><br></pre></td></tr></table></figure></p>
<blockquote>
<p>Sigar 通过java.library.path加载这些本地库文件，这些库文件同样可以在下载的压缩包中找到，官方给出的库文件更多，可以根据自己的跨平台需要选择,Sigar这一点是非常蛋疼的，为了用几个API，每部署到一台电脑还要去折腾一遍库文件，想想就不能忍。</p>
</blockquote>
<h5 id="好了废话不多说了-直接上代码。"><a href="#好了废话不多说了-直接上代码。" class="headerlink" title="好了废话不多说了 直接上代码。"></a>好了废话不多说了 直接上代码。</h5><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">public</span> <span class="class"><span class="keyword">class</span> <span class="title">TestSigar</span> </span>&#123;</span><br><span class="line">    <span class="function"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">main</span><span class="params">(String[] args)</span> </span>&#123;</span><br><span class="line">        <span class="keyword">try</span> &#123;</span><br><span class="line">            <span class="comment">// System信息，从jvm获取</span></span><br><span class="line">            property();</span><br><span class="line">            System.out.println(<span class="string">"----------------------------------"</span>);</span><br><span class="line">            <span class="comment">// cpu信息</span></span><br><span class="line">            cpu();</span><br><span class="line">            System.out.println(<span class="string">"----------------------------------"</span>);</span><br><span class="line">            <span class="comment">// 内存信息</span></span><br><span class="line">            memory();</span><br><span class="line">            System.out.println(<span class="string">"----------------------------------"</span>);</span><br><span class="line">            <span class="comment">// 操作系统信息</span></span><br><span class="line">            os();</span><br><span class="line">            System.out.println(<span class="string">"----------------------------------"</span>);</span><br><span class="line">            <span class="comment">// 用户信息</span></span><br><span class="line">            who();</span><br><span class="line">            System.out.println(<span class="string">"----------------------------------"</span>);</span><br><span class="line">            <span class="comment">// 文件系统信息</span></span><br><span class="line">            file();</span><br><span class="line">            System.out.println(<span class="string">"----------------------------------"</span>);</span><br><span class="line">            <span class="comment">// 网络信息</span></span><br><span class="line">            net();</span><br><span class="line">            System.out.println(<span class="string">"----------------------------------"</span>);</span><br><span class="line">            <span class="comment">// 以太网信息</span></span><br><span class="line">            ethernet();</span><br><span class="line">            System.out.println(<span class="string">"----------------------------------"</span>);</span><br><span class="line">        &#125; <span class="keyword">catch</span> (Exception e1) &#123;</span><br><span class="line">            e1.printStackTrace();</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">property</span><span class="params">()</span> <span class="keyword">throws</span> UnknownHostException </span>&#123;</span><br><span class="line">        Runtime r = Runtime.getRuntime();</span><br><span class="line">        Properties props = System.getProperties();</span><br><span class="line">        InetAddress addr;</span><br><span class="line">        addr = InetAddress.getLocalHost();</span><br><span class="line">        String ip = addr.getHostAddress();</span><br><span class="line">        Map&lt;String, String&gt; map = System.getenv();</span><br><span class="line">        String userName = map.get(<span class="string">"USERNAME"</span>);<span class="comment">// 获取用户名</span></span><br><span class="line">        String computerName = map.get(<span class="string">"COMPUTERNAME"</span>);<span class="comment">// 获取计算机名</span></span><br><span class="line">        String userDomain = map.get(<span class="string">"USERDOMAIN"</span>);<span class="comment">// 获取计算机域名</span></span><br><span class="line">        System.out.println(<span class="string">"用户名:    "</span> + userName);</span><br><span class="line">        System.out.println(<span class="string">"计算机名:    "</span> + computerName);</span><br><span class="line">        System.out.println(<span class="string">"计算机域名:    "</span> + userDomain);</span><br><span class="line">        System.out.println(<span class="string">"本地ip地址:    "</span> + ip);</span><br><span class="line">        System.out.println(<span class="string">"本地主机名:    "</span> + addr.getHostName());</span><br><span class="line">        System.out.println(<span class="string">"JVM可以使用的总内存:    "</span> + r.totalMemory());</span><br><span class="line">        System.out.println(<span class="string">"JVM可以使用的剩余内存:    "</span> + r.freeMemory());</span><br><span class="line">        System.out.println(<span class="string">"JVM可以使用的处理器个数:    "</span> + r.availableProcessors());</span><br><span class="line">        System.out.println(<span class="string">"Java的运行环境版本：    "</span> + props.getProperty(<span class="string">"java.version"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java的运行环境供应商：    "</span> + props.getProperty(<span class="string">"java.vendor"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java供应商的URL：    "</span> + props.getProperty(<span class="string">"java.vendor.url"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java的安装路径：    "</span> + props.getProperty(<span class="string">"java.home"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java的虚拟机规范版本：    "</span> + props.getProperty(<span class="string">"java.vm.specification.version"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java的虚拟机规范供应商：    "</span> + props.getProperty(<span class="string">"java.vm.specification.vendor"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java的虚拟机规范名称：    "</span> + props.getProperty(<span class="string">"java.vm.specification.name"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java的虚拟机实现版本：    "</span> + props.getProperty(<span class="string">"java.vm.version"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java的虚拟机实现供应商：    "</span> + props.getProperty(<span class="string">"java.vm.vendor"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java的虚拟机实现名称：    "</span> + props.getProperty(<span class="string">"java.vm.name"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java运行时环境规范版本：    "</span> + props.getProperty(<span class="string">"java.specification.version"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java运行时环境规范供应商：    "</span> + props.getProperty(<span class="string">"java.specification.vender"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java运行时环境规范名称：    "</span> + props.getProperty(<span class="string">"java.specification.name"</span>));</span><br><span class="line">        System.out.println(<span class="string">"Java的类格式版本号：    "</span> + props.getProperty(<span class="string">"java.class.version"</span>));</span><br><span class="line">        <span class="comment">//System.out.println("Java的类路径：    " + props.getProperty("java.class.path"));</span></span><br><span class="line">        <span class="comment">//System.out.println("加载库时搜索的路径列表：    " + props.getProperty("java.library.path"));</span></span><br><span class="line">        System.out.println(<span class="string">"默认的临时文件路径：    "</span> + props.getProperty(<span class="string">"java.io.tmpdir"</span>));</span><br><span class="line">        System.out.println(<span class="string">"一个或多个扩展目录的路径：    "</span> + props.getProperty(<span class="string">"java.ext.dirs"</span>));</span><br><span class="line">        System.out.println(<span class="string">"操作系统的名称：    "</span> + props.getProperty(<span class="string">"os.name"</span>));</span><br><span class="line">        System.out.println(<span class="string">"操作系统的构架：    "</span> + props.getProperty(<span class="string">"os.arch"</span>));</span><br><span class="line">        System.out.println(<span class="string">"操作系统的版本：    "</span> + props.getProperty(<span class="string">"os.version"</span>));</span><br><span class="line">        System.out.println(<span class="string">"文件分隔符：    "</span> + props.getProperty(<span class="string">"file.separator"</span>));</span><br><span class="line">        System.out.println(<span class="string">"路径分隔符：    "</span> + props.getProperty(<span class="string">"path.separator"</span>));</span><br><span class="line">        System.out.println(<span class="string">"行分隔符：    "</span> + props.getProperty(<span class="string">"line.separator"</span>));</span><br><span class="line">        System.out.println(<span class="string">"用户的账户名称：    "</span> + props.getProperty(<span class="string">"user.name"</span>));</span><br><span class="line">        System.out.println(<span class="string">"用户的主目录：    "</span> + props.getProperty(<span class="string">"user.home"</span>));</span><br><span class="line">        System.out.println(<span class="string">"用户的当前工作目录：    "</span> + props.getProperty(<span class="string">"user.dir"</span>));</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">memory</span><span class="params">()</span> <span class="keyword">throws</span> SigarException </span>&#123;</span><br><span class="line">        Sigar sigar = <span class="keyword">new</span> Sigar();</span><br><span class="line">        Mem mem = sigar.getMem();</span><br><span class="line">        <span class="comment">// 内存总量</span></span><br><span class="line">        System.out.println(<span class="string">"内存总量:    "</span> + mem.getTotal() / <span class="number">1024L</span> + <span class="string">"K av"</span>);</span><br><span class="line">        <span class="comment">// 当前内存使用量</span></span><br><span class="line">        System.out.println(<span class="string">"当前内存使用量:    "</span> + mem.getUsed() / <span class="number">1024L</span> + <span class="string">"K used"</span>);</span><br><span class="line">        <span class="comment">// 当前内存剩余量</span></span><br><span class="line">        System.out.println(<span class="string">"当前内存剩余量:    "</span> + mem.getFree() / <span class="number">1024L</span> + <span class="string">"K free"</span>);</span><br><span class="line">        Swap swap = sigar.getSwap();</span><br><span class="line">        <span class="comment">// 交换区总量</span></span><br><span class="line">        System.out.println(<span class="string">"交换区总量:    "</span> + swap.getTotal() / <span class="number">1024L</span> + <span class="string">"K av"</span>);</span><br><span class="line">        <span class="comment">// 当前交换区使用量</span></span><br><span class="line">        System.out.println(<span class="string">"当前交换区使用量:    "</span> + swap.getUsed() / <span class="number">1024L</span> + <span class="string">"K used"</span>);</span><br><span class="line">        <span class="comment">// 当前交换区剩余量</span></span><br><span class="line">        System.out.println(<span class="string">"当前交换区剩余量:    "</span> + swap.getFree() / <span class="number">1024L</span> + <span class="string">"K free"</span>);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">cpu</span><span class="params">()</span> <span class="keyword">throws</span> SigarException </span>&#123;</span><br><span class="line">        Sigar sigar = <span class="keyword">new</span> Sigar();</span><br><span class="line">        CpuInfo infos[] = sigar.getCpuInfoList();</span><br><span class="line">        CpuPerc cpuList[] = <span class="keyword">null</span>;</span><br><span class="line"></span><br><span class="line">        System.out.println(<span class="string">"cpu 总量参数情况:"</span> + sigar.getCpu());</span><br><span class="line">        System.out.println(<span class="string">"cpu 总百分比情况:"</span> + sigar.getCpuPerc());</span><br><span class="line"></span><br><span class="line">        cpuList = sigar.getCpuPercList();</span><br><span class="line">        <span class="keyword">for</span> (<span class="keyword">int</span> i = <span class="number">0</span>; i &lt; infos.length; i++) &#123;<span class="comment">// 不管是单块CPU还是多CPU都适用</span></span><br><span class="line">            CpuInfo info = infos[i];</span><br><span class="line">            System.out.println(<span class="string">"第"</span> + (i + <span class="number">1</span>) + <span class="string">"块CPU信息"</span>);</span><br><span class="line">            System.out.println(<span class="string">"CPU的总量MHz:    "</span> + info.getMhz());<span class="comment">// CPU的总量MHz</span></span><br><span class="line">            System.out.println(<span class="string">"CPU生产商:    "</span> + info.getVendor());<span class="comment">// 获得CPU的卖主，如：Intel</span></span><br><span class="line">            System.out.println(<span class="string">"CPU类别:    "</span> + info.getModel());<span class="comment">// 获得CPU的类别，如：Celeron</span></span><br><span class="line">            System.out.println(<span class="string">"CPU缓存数量:    "</span> + info.getCacheSize());<span class="comment">// 缓冲存储器数量</span></span><br><span class="line">            printCpuPerc(cpuList[i]);</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">printCpuPerc</span><span class="params">(CpuPerc cpu)</span> </span>&#123;</span><br><span class="line">        System.out.println(<span class="string">"CPU用户使用率:    "</span> + CpuPerc.format(cpu.getUser()));<span class="comment">// 用户使用率</span></span><br><span class="line">        System.out.println(<span class="string">"CPU系统使用率:    "</span> + CpuPerc.format(cpu.getSys()));<span class="comment">// 系统使用率</span></span><br><span class="line">        System.out.println(<span class="string">"CPU当前等待率:    "</span> + CpuPerc.format(cpu.getWait()));<span class="comment">// 当前等待率</span></span><br><span class="line">        System.out.println(<span class="string">"CPU当前错误率:    "</span> + CpuPerc.format(cpu.getNice()));<span class="comment">//</span></span><br><span class="line">        System.out.println(<span class="string">"CPU当前空闲率:    "</span> + CpuPerc.format(cpu.getIdle()));<span class="comment">// 当前空闲率</span></span><br><span class="line">        System.out.println(<span class="string">"CPU总的使用率:    "</span> + CpuPerc.format(cpu.getCombined()));<span class="comment">// 总的使用率</span></span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">os</span><span class="params">()</span> </span>&#123;</span><br><span class="line">        OperatingSystem OS = OperatingSystem.getInstance();</span><br><span class="line">        <span class="comment">// 操作系统内核类型如： 386、486、586等x86</span></span><br><span class="line">        System.out.println(<span class="string">"操作系统:    "</span> + OS.getArch());</span><br><span class="line">        System.out.println(<span class="string">"操作系统CpuEndian():    "</span> + OS.getCpuEndian());<span class="comment">//</span></span><br><span class="line">        System.out.println(<span class="string">"操作系统DataModel():    "</span> + OS.getDataModel());<span class="comment">//</span></span><br><span class="line">        <span class="comment">// 系统描述</span></span><br><span class="line">        System.out.println(<span class="string">"操作系统的描述:    "</span> + OS.getDescription());</span><br><span class="line">        <span class="comment">// 操作系统类型</span></span><br><span class="line">        <span class="comment">// System.out.println("OS.getName():    " + OS.getName());</span></span><br><span class="line">        <span class="comment">// System.out.println("OS.getPatchLevel():    " + OS.getPatchLevel());//</span></span><br><span class="line">        <span class="comment">// 操作系统的卖主</span></span><br><span class="line">        System.out.println(<span class="string">"操作系统的卖主:    "</span> + OS.getVendor());</span><br><span class="line">        <span class="comment">// 卖主名称</span></span><br><span class="line">        System.out.println(<span class="string">"操作系统的卖主名:    "</span> + OS.getVendorCodeName());</span><br><span class="line">        <span class="comment">// 操作系统名称</span></span><br><span class="line">        System.out.println(<span class="string">"操作系统名称:    "</span> + OS.getVendorName());</span><br><span class="line">        <span class="comment">// 操作系统卖主类型</span></span><br><span class="line">        System.out.println(<span class="string">"操作系统卖主类型:    "</span> + OS.getVendorVersion());</span><br><span class="line">        <span class="comment">// 操作系统的版本号</span></span><br><span class="line">        System.out.println(<span class="string">"操作系统的版本号:    "</span> + OS.getVersion());</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">who</span><span class="params">()</span> <span class="keyword">throws</span> SigarException </span>&#123;</span><br><span class="line">        Sigar sigar = <span class="keyword">new</span> Sigar();</span><br><span class="line">        Who who[] = sigar.getWhoList();</span><br><span class="line">        <span class="keyword">if</span> (who != <span class="keyword">null</span> &amp;&amp; who.length &gt; <span class="number">0</span>) &#123;</span><br><span class="line">            <span class="keyword">for</span> (<span class="keyword">int</span> i = <span class="number">0</span>; i &lt; who.length; i++) &#123;</span><br><span class="line">                <span class="comment">// System.out.println("当前系统进程表中的用户名" + String.valueOf(i));</span></span><br><span class="line">                Who _who = who[i];</span><br><span class="line">                System.out.println(<span class="string">"用户控制台:    "</span> + _who.getDevice());</span><br><span class="line">                System.out.println(<span class="string">"用户host:    "</span> + _who.getHost());</span><br><span class="line">                <span class="comment">// System.out.println("getTime():    " + _who.getTime());</span></span><br><span class="line">                <span class="comment">// 当前系统进程表中的用户名</span></span><br><span class="line">                System.out.println(<span class="string">"当前系统进程表中的用户名:    "</span> + _who.getUser());</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">file</span><span class="params">()</span> <span class="keyword">throws</span> Exception </span>&#123;</span><br><span class="line">        Sigar sigar = <span class="keyword">new</span> Sigar();</span><br><span class="line">        FileSystem fslist[] = sigar.getFileSystemList();</span><br><span class="line">        <span class="keyword">for</span> (<span class="keyword">int</span> i = <span class="number">0</span>; i &lt; fslist.length; i++) &#123;</span><br><span class="line">            System.out.println(<span class="string">"分区的盘符名称"</span> + i);</span><br><span class="line">            FileSystem fs = fslist[i];</span><br><span class="line">            <span class="comment">// 分区的盘符名称</span></span><br><span class="line">            System.out.println(<span class="string">"盘符名称:    "</span> + fs.getDevName());</span><br><span class="line">            <span class="comment">// 分区的盘符名称</span></span><br><span class="line">            System.out.println(<span class="string">"盘符路径:    "</span> + fs.getDirName());</span><br><span class="line">            System.out.println(<span class="string">"盘符标志:    "</span> + fs.getFlags());<span class="comment">//</span></span><br><span class="line">            <span class="comment">// 文件系统类型，比如 FAT32、NTFS</span></span><br><span class="line">            System.out.println(<span class="string">"盘符类型:    "</span> + fs.getSysTypeName());</span><br><span class="line">            <span class="comment">// 文件系统类型名，比如本地硬盘、光驱、网络文件系统等</span></span><br><span class="line">            System.out.println(<span class="string">"盘符类型名:    "</span> + fs.getTypeName());</span><br><span class="line">            <span class="comment">// 文件系统类型</span></span><br><span class="line">            System.out.println(<span class="string">"盘符文件系统类型:    "</span> + fs.getType());</span><br><span class="line">            FileSystemUsage usage = <span class="keyword">null</span>;</span><br><span class="line">            usage = sigar.getFileSystemUsage(fs.getDirName());</span><br><span class="line">            <span class="keyword">switch</span> (fs.getType()) &#123;</span><br><span class="line">            <span class="keyword">case</span> <span class="number">0</span>: <span class="comment">// TYPE_UNKNOWN ：未知</span></span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            <span class="keyword">case</span> <span class="number">1</span>: <span class="comment">// TYPE_NONE</span></span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            <span class="keyword">case</span> <span class="number">2</span>: <span class="comment">// TYPE_LOCAL_DISK : 本地硬盘</span></span><br><span class="line">                <span class="comment">// 文件系统总大小</span></span><br><span class="line">                System.out.println(fs.getDevName() + <span class="string">"总大小:    "</span> + usage.getTotal() + <span class="string">"KB"</span>);</span><br><span class="line">                <span class="comment">// 文件系统剩余大小</span></span><br><span class="line">                System.out.println(fs.getDevName() + <span class="string">"剩余大小:    "</span> + usage.getFree() + <span class="string">"KB"</span>);</span><br><span class="line">                <span class="comment">// 文件系统可用大小</span></span><br><span class="line">                System.out.println(fs.getDevName() + <span class="string">"可用大小:    "</span> + usage.getAvail() + <span class="string">"KB"</span>);</span><br><span class="line">                <span class="comment">// 文件系统已经使用量</span></span><br><span class="line">                System.out.println(fs.getDevName() + <span class="string">"已经使用量:    "</span> + usage.getUsed() + <span class="string">"KB"</span>);</span><br><span class="line">                <span class="keyword">double</span> usePercent = usage.getUsePercent() * <span class="number">100</span>D;</span><br><span class="line">                <span class="comment">// 文件系统资源的利用率</span></span><br><span class="line">                System.out.println(fs.getDevName() + <span class="string">"资源的利用率:    "</span> + usePercent + <span class="string">"%"</span>);</span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            <span class="keyword">case</span> <span class="number">3</span>:<span class="comment">// TYPE_NETWORK ：网络</span></span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            <span class="keyword">case</span> <span class="number">4</span>:<span class="comment">// TYPE_RAM_DISK ：闪存</span></span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            <span class="keyword">case</span> <span class="number">5</span>:<span class="comment">// TYPE_CDROM ：光驱</span></span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            <span class="keyword">case</span> <span class="number">6</span>:<span class="comment">// TYPE_SWAP ：页面交换</span></span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            System.out.println(fs.getDevName() + <span class="string">"读出：    "</span> + usage.getDiskReads());</span><br><span class="line">            System.out.println(fs.getDevName() + <span class="string">"写入：    "</span> + usage.getDiskWrites());</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span>;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">net</span><span class="params">()</span> <span class="keyword">throws</span> Exception </span>&#123;</span><br><span class="line">        Sigar sigar = <span class="keyword">new</span> Sigar();</span><br><span class="line">        String ifNames[] = sigar.getNetInterfaceList();</span><br><span class="line">        <span class="keyword">for</span> (<span class="keyword">int</span> i = <span class="number">0</span>; i &lt; ifNames.length; i++) &#123;</span><br><span class="line">            String name = ifNames[i];</span><br><span class="line">            NetInterfaceConfig ifconfig = sigar.getNetInterfaceConfig(name);</span><br><span class="line">            System.out.println(<span class="string">"网络设备名:    "</span> + name);<span class="comment">// 网络设备名</span></span><br><span class="line">            System.out.println(<span class="string">"IP地址:    "</span> + ifconfig.getAddress());<span class="comment">// IP地址</span></span><br><span class="line">            System.out.println(<span class="string">"子网掩码:    "</span> + ifconfig.getNetmask());<span class="comment">// 子网掩码</span></span><br><span class="line">            <span class="keyword">if</span> ((ifconfig.getFlags() &amp; <span class="number">1L</span>) &lt;= <span class="number">0L</span>) &#123;</span><br><span class="line">                System.out.println(<span class="string">"!IFF_UP...skipping getNetInterfaceStat"</span>);</span><br><span class="line">                <span class="keyword">continue</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            NetInterfaceStat ifstat = sigar.getNetInterfaceStat(name);</span><br><span class="line">            System.out.println(name + <span class="string">"接收的总包裹数:"</span> + ifstat.getRxPackets());<span class="comment">// 接收的总包裹数</span></span><br><span class="line">            System.out.println(name + <span class="string">"发送的总包裹数:"</span> + ifstat.getTxPackets());<span class="comment">// 发送的总包裹数</span></span><br><span class="line">            System.out.println(name + <span class="string">"接收到的总字节数:"</span> + ifstat.getRxBytes());<span class="comment">// 接收到的总字节数</span></span><br><span class="line">            System.out.println(name + <span class="string">"发送的总字节数:"</span> + ifstat.getTxBytes());<span class="comment">// 发送的总字节数</span></span><br><span class="line">            System.out.println(name + <span class="string">"接收到的错误包数:"</span> + ifstat.getRxErrors());<span class="comment">// 接收到的错误包数</span></span><br><span class="line">            System.out.println(name + <span class="string">"发送数据包时的错误数:"</span> + ifstat.getTxErrors());<span class="comment">// 发送数据包时的错误数</span></span><br><span class="line">            System.out.println(name + <span class="string">"接收时丢弃的包数:"</span> + ifstat.getRxDropped());<span class="comment">// 接收时丢弃的包数</span></span><br><span class="line">            System.out.println(name + <span class="string">"发送时丢弃的包数:"</span> + ifstat.getTxDropped());<span class="comment">// 发送时丢弃的包数</span></span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">ethernet</span><span class="params">()</span> <span class="keyword">throws</span> SigarException </span>&#123;</span><br><span class="line">        Sigar sigar = <span class="keyword">null</span>;</span><br><span class="line">        sigar = <span class="keyword">new</span> Sigar();</span><br><span class="line">        String[] ifaces = sigar.getNetInterfaceList();</span><br><span class="line">        <span class="keyword">for</span> (<span class="keyword">int</span> i = <span class="number">0</span>; i &lt; ifaces.length; i++) &#123;</span><br><span class="line">            NetInterfaceConfig cfg = sigar.getNetInterfaceConfig(ifaces[i]);</span><br><span class="line">            <span class="keyword">if</span> (NetFlags.LOOPBACK_ADDRESS.equals(cfg.getAddress()) || (cfg.getFlags() &amp; NetFlags.IFF_LOOPBACK) != <span class="number">0</span></span><br><span class="line">                    || NetFlags.NULL_HWADDR.equals(cfg.getHwaddr())) &#123;</span><br><span class="line">                <span class="keyword">continue</span>;</span><br><span class="line">            &#125;</span><br><span class="line">            System.out.println(cfg.getName() + <span class="string">"IP地址:"</span> + cfg.getAddress());<span class="comment">// IP地址</span></span><br><span class="line">            System.out.println(cfg.getName() + <span class="string">"网关广播地址:"</span> + cfg.getBroadcast());<span class="comment">// 网关广播地址</span></span><br><span class="line">            System.out.println(cfg.getName() + <span class="string">"网卡MAC地址:"</span> + cfg.getHwaddr());<span class="comment">// 网卡MAC地址</span></span><br><span class="line">            System.out.println(cfg.getName() + <span class="string">"子网掩码:"</span> + cfg.getNetmask());<span class="comment">// 子网掩码</span></span><br><span class="line">            System.out.println(cfg.getName() + <span class="string">"网卡描述信息:"</span> + cfg.getDescription());<span class="comment">// 网卡描述信息</span></span><br><span class="line">            System.out.println(cfg.getName() + <span class="string">"网卡类型"</span> + cfg.getType());<span class="comment">//</span></span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<h5 id="输出结果："><a href="#输出结果：" class="headerlink" title="输出结果："></a>输出结果：</h5><figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br><span class="line">274</span><br><span class="line">275</span><br><span class="line">276</span><br><span class="line">277</span><br><span class="line">278</span><br><span class="line">279</span><br><span class="line">280</span><br><span class="line">281</span><br><span class="line">282</span><br><span class="line">283</span><br><span class="line">284</span><br><span class="line">285</span><br><span class="line">286</span><br><span class="line">287</span><br><span class="line">288</span><br><span class="line">289</span><br><span class="line">290</span><br><span class="line">291</span><br><span class="line">292</span><br><span class="line">293</span><br><span class="line">294</span><br><span class="line">295</span><br><span class="line">296</span><br><span class="line">297</span><br><span class="line">298</span><br><span class="line">299</span><br><span class="line">300</span><br><span class="line">301</span><br><span class="line">302</span><br><span class="line">303</span><br><span class="line">304</span><br><span class="line">305</span><br><span class="line">306</span><br><span class="line">307</span><br><span class="line">308</span><br><span class="line">309</span><br><span class="line">310</span><br><span class="line">311</span><br><span class="line">312</span><br><span class="line">313</span><br><span class="line">314</span><br><span class="line">315</span><br><span class="line">316</span><br><span class="line">317</span><br><span class="line">318</span><br><span class="line">319</span><br><span class="line">320</span><br><span class="line">321</span><br><span class="line">322</span><br><span class="line">323</span><br><span class="line">324</span><br><span class="line">325</span><br><span class="line">326</span><br><span class="line">327</span><br><span class="line">328</span><br><span class="line">329</span><br><span class="line">330</span><br><span class="line">331</span><br><span class="line">332</span><br><span class="line">333</span><br><span class="line">334</span><br><span class="line">335</span><br><span class="line">336</span><br><span class="line">337</span><br><span class="line">338</span><br><span class="line">339</span><br><span class="line">340</span><br><span class="line">341</span><br><span class="line">342</span><br><span class="line">343</span><br><span class="line">344</span><br><span class="line">345</span><br><span class="line">346</span><br><span class="line">347</span><br><span class="line">348</span><br><span class="line">349</span><br><span class="line">350</span><br><span class="line">351</span><br><span class="line">352</span><br><span class="line">353</span><br><span class="line">354</span><br><span class="line">355</span><br><span class="line">356</span><br><span class="line">357</span><br><span class="line">358</span><br><span class="line">359</span><br><span class="line">360</span><br><span class="line">361</span><br><span class="line">362</span><br><span class="line">363</span><br><span class="line">364</span><br><span class="line">365</span><br><span class="line">366</span><br><span class="line">367</span><br><span class="line">368</span><br><span class="line">369</span><br><span class="line">370</span><br><span class="line">371</span><br><span class="line">372</span><br><span class="line">373</span><br><span class="line">374</span><br><span class="line">375</span><br><span class="line">376</span><br><span class="line">377</span><br><span class="line">378</span><br><span class="line">379</span><br><span class="line">380</span><br><span class="line">381</span><br><span class="line">382</span><br><span class="line">383</span><br><span class="line">384</span><br><span class="line">385</span><br><span class="line">386</span><br><span class="line">387</span><br><span class="line">388</span><br><span class="line">389</span><br><span class="line">390</span><br><span class="line">391</span><br><span class="line">392</span><br><span class="line">393</span><br><span class="line">394</span><br><span class="line">395</span><br><span class="line">396</span><br><span class="line">397</span><br><span class="line">398</span><br><span class="line">399</span><br><span class="line">400</span><br><span class="line">401</span><br><span class="line">402</span><br><span class="line">403</span><br><span class="line">404</span><br><span class="line">405</span><br><span class="line">406</span><br><span class="line">407</span><br><span class="line">408</span><br><span class="line">409</span><br><span class="line">410</span><br><span class="line">411</span><br><span class="line">412</span><br><span class="line">413</span><br><span class="line">414</span><br><span class="line">415</span><br><span class="line">416</span><br><span class="line">417</span><br><span class="line">418</span><br><span class="line">419</span><br><span class="line">420</span><br><span class="line">421</span><br><span class="line">422</span><br><span class="line">423</span><br><span class="line">424</span><br><span class="line">425</span><br><span class="line">426</span><br><span class="line">427</span><br><span class="line">428</span><br><span class="line">429</span><br><span class="line">430</span><br><span class="line">431</span><br><span class="line">432</span><br><span class="line">433</span><br><span class="line">434</span><br><span class="line">435</span><br><span class="line">436</span><br><span class="line">437</span><br><span class="line">438</span><br><span class="line">439</span><br><span class="line">440</span><br><span class="line">441</span><br><span class="line">442</span><br><span class="line">443</span><br><span class="line">444</span><br><span class="line">445</span><br><span class="line">446</span><br><span class="line">447</span><br><span class="line">448</span><br><span class="line">449</span><br><span class="line">450</span><br><span class="line">451</span><br><span class="line">452</span><br><span class="line">453</span><br><span class="line">454</span><br><span class="line">455</span><br><span class="line">456</span><br><span class="line">457</span><br><span class="line">458</span><br><span class="line">459</span><br><span class="line">460</span><br><span class="line">461</span><br><span class="line">462</span><br><span class="line">463</span><br><span class="line">464</span><br><span class="line">465</span><br><span class="line">466</span><br><span class="line">467</span><br><span class="line">468</span><br><span class="line">469</span><br><span class="line">470</span><br><span class="line">471</span><br><span class="line">472</span><br><span class="line">473</span><br><span class="line">474</span><br><span class="line">475</span><br><span class="line">476</span><br><span class="line">477</span><br><span class="line">478</span><br><span class="line">479</span><br><span class="line">480</span><br><span class="line">481</span><br><span class="line">482</span><br><span class="line">483</span><br><span class="line">484</span><br></pre></td><td class="code"><pre><span class="line">用户名:    bjmaozhengwei</span><br><span class="line">计算机名:    MAOZW</span><br><span class="line">计算机域名:    MAOZW</span><br><span class="line">本地ip地址:    192.168.0.1</span><br><span class="line">本地主机名:    maozw</span><br><span class="line">JVM可以使用的总内存:    257425408</span><br><span class="line">JVM可以使用的剩余内存:    250676544</span><br><span class="line">JVM可以使用的处理器个数:    8</span><br><span class="line">Java的运行环境版本：    1.8.0_141</span><br><span class="line">Java的运行环境供应商：    Oracle Corporation</span><br><span class="line">Java供应商的URL：    http://java.oracle.com/</span><br><span class="line">Java的安装路径：    C:\Program Files\Java\jdk1.8.0_141\jre</span><br><span class="line">Java的虚拟机规范版本：    1.8</span><br><span class="line">Java的虚拟机规范供应商：    Oracle Corporation</span><br><span class="line">Java的虚拟机规范名称：    Java Virtual Machine Specification</span><br><span class="line">Java的虚拟机实现版本：    25.141-b15</span><br><span class="line">Java的虚拟机实现供应商：    Oracle Corporation</span><br><span class="line">Java的虚拟机实现名称：    Java HotSpot(TM) 64-Bit Server VM</span><br><span class="line">Java运行时环境规范版本：    1.8</span><br><span class="line">Java运行时环境规范供应商：    null</span><br><span class="line">Java运行时环境规范名称：    Java Platform API Specification</span><br><span class="line">Java的类格式版本号：    52.0</span><br><span class="line">默认的临时文件路径：    C:\Users\ADMINI~1\AppData\Local\Temp\</span><br><span class="line">一个或多个扩展目录的路径：    C:\Program Files\Java\jdk1.8.0_141\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext</span><br><span class="line">操作系统的名称：    Windows 10</span><br><span class="line">操作系统的构架：    amd64</span><br><span class="line">操作系统的版本：    10.0</span><br><span class="line">文件分隔符：    \</span><br><span class="line">路径分隔符：    ;</span><br><span class="line">行分隔符：    </span><br><span class="line"></span><br><span class="line">用户的账户名称：    bjmaozhengwei</span><br><span class="line">用户的主目录：    C:\Users\Administrator</span><br><span class="line">----------------------------------</span><br><span class="line">cpu 总量参数情况:&#123;User=10298107, Idle=205720652, Total=1003604205, Nice=0, Irq=640246, Sys=7003980, Wait=0, SoftIrq=0, Stolen=0&#125;</span><br><span class="line">cpu 总百分比情况:CPU states: 27.2% user, 8.9% system, 0.0% nice, 0.0% wait, 63.4% idle</span><br><span class="line">第1块CPU信息</span><br><span class="line">CPU的总量MHz:    4008</span><br><span class="line">CPU生产商:    Intel</span><br><span class="line">CPU类别:    Core(TM) i7-6700K CPU @ 4.00GHz</span><br><span class="line">CPU缓存数量:    -1</span><br><span class="line">CPU用户使用率:    25.0%</span><br><span class="line">CPU系统使用率:    9.4%</span><br><span class="line">CPU当前等待率:    0.0%</span><br><span class="line">CPU当前错误率:    0.0%</span><br><span class="line">CPU当前空闲率:    65.6%</span><br><span class="line">CPU总的使用率:    34.4%</span><br><span class="line">第2块CPU信息</span><br><span class="line">CPU的总量MHz:    4008</span><br><span class="line">CPU生产商:    Intel</span><br><span class="line">CPU类别:    Core(TM) i7-6700K CPU @ 4.00GHz</span><br><span class="line">CPU缓存数量:    -1</span><br><span class="line">CPU用户使用率:    15.6%</span><br><span class="line">CPU系统使用率:    3.0%</span><br><span class="line">CPU当前等待率:    0.0%</span><br><span class="line">CPU当前错误率:    0.0%</span><br><span class="line">CPU当前空闲率:    81.3%</span><br><span class="line">CPU总的使用率:    18.6%</span><br><span class="line">第3块CPU信息</span><br><span class="line">CPU的总量MHz:    4008</span><br><span class="line">CPU生产商:    Intel</span><br><span class="line">CPU类别:    Core(TM) i7-6700K CPU @ 4.00GHz</span><br><span class="line">CPU缓存数量:    -1</span><br><span class="line">CPU用户使用率:    43.8%</span><br><span class="line">CPU系统使用率:    6.2%</span><br><span class="line">CPU当前等待率:    0.0%</span><br><span class="line">CPU当前错误率:    0.0%</span><br><span class="line">CPU当前空闲率:    50.0%</span><br><span class="line">CPU总的使用率:    50.0%</span><br><span class="line">第4块CPU信息</span><br><span class="line">CPU的总量MHz:    4008</span><br><span class="line">CPU生产商:    Intel</span><br><span class="line">CPU类别:    Core(TM) i7-6700K CPU @ 4.00GHz</span><br><span class="line">CPU缓存数量:    -1</span><br><span class="line">CPU用户使用率:    9.3%</span><br><span class="line">CPU系统使用率:    9.3%</span><br><span class="line">CPU当前等待率:    0.0%</span><br><span class="line">CPU当前错误率:    0.0%</span><br><span class="line">CPU当前空闲率:    81.2%</span><br><span class="line">CPU总的使用率:    18.7%</span><br><span class="line">第5块CPU信息</span><br><span class="line">CPU的总量MHz:    4008</span><br><span class="line">CPU生产商:    Intel</span><br><span class="line">CPU类别:    Core(TM) i7-6700K CPU @ 4.00GHz</span><br><span class="line">CPU缓存数量:    -1</span><br><span class="line">CPU用户使用率:    31.3%</span><br><span class="line">CPU系统使用率:    3.1%</span><br><span class="line">CPU当前等待率:    0.0%</span><br><span class="line">CPU当前错误率:    0.0%</span><br><span class="line">CPU当前空闲率:    65.4%</span><br><span class="line">CPU总的使用率:    34.5%</span><br><span class="line">第6块CPU信息</span><br><span class="line">CPU的总量MHz:    4008</span><br><span class="line">CPU生产商:    Intel</span><br><span class="line">CPU类别:    Core(TM) i7-6700K CPU @ 4.00GHz</span><br><span class="line">CPU缓存数量:    -1</span><br><span class="line">CPU用户使用率:    9.4%</span><br><span class="line">CPU系统使用率:    0.0%</span><br><span class="line">CPU当前等待率:    0.0%</span><br><span class="line">CPU当前错误率:    0.0%</span><br><span class="line">CPU当前空闲率:    90.6%</span><br><span class="line">CPU总的使用率:    9.4%</span><br><span class="line">第7块CPU信息</span><br><span class="line">CPU的总量MHz:    4008</span><br><span class="line">CPU生产商:    Intel</span><br><span class="line">CPU类别:    Core(TM) i7-6700K CPU @ 4.00GHz</span><br><span class="line">CPU缓存数量:    -1</span><br><span class="line">CPU用户使用率:    25.0%</span><br><span class="line">CPU系统使用率:    6.2%</span><br><span class="line">CPU当前等待率:    0.0%</span><br><span class="line">CPU当前错误率:    0.0%</span><br><span class="line">CPU当前空闲率:    68.8%</span><br><span class="line">CPU总的使用率:    31.2%</span><br><span class="line">第8块CPU信息</span><br><span class="line">CPU的总量MHz:    4008</span><br><span class="line">CPU生产商:    Intel</span><br><span class="line">CPU类别:    Core(TM) i7-6700K CPU @ 4.00GHz</span><br><span class="line">CPU缓存数量:    -1</span><br><span class="line">CPU用户使用率:    18.6%</span><br><span class="line">CPU系统使用率:    3.0%</span><br><span class="line">CPU当前等待率:    0.0%</span><br><span class="line">CPU当前错误率:    0.0%</span><br><span class="line">CPU当前空闲率:    78.3%</span><br><span class="line">CPU总的使用率:    21.6%</span><br><span class="line">----------------------------------</span><br><span class="line">内存总量:    16679488K av</span><br><span class="line">当前内存使用量:    8011976K used</span><br><span class="line">当前内存剩余量:    8667512K free</span><br><span class="line">交换区总量:    20873792K av</span><br><span class="line">当前交换区使用量:    13403980K used</span><br><span class="line">当前交换区剩余量:    7469812K free</span><br><span class="line">----------------------------------</span><br><span class="line">操作系统:    x64</span><br><span class="line">操作系统CpuEndian():    little</span><br><span class="line">操作系统DataModel():    64</span><br><span class="line">操作系统的描述:    Microsoft</span><br><span class="line">操作系统的卖主:    Microsoft</span><br><span class="line">操作系统的卖主名:    </span><br><span class="line">操作系统名称:    </span><br><span class="line">操作系统卖主类型:    x Ôv</span><br><span class="line">操作系统的版本号:    10.0</span><br><span class="line">----------------------------------</span><br><span class="line">用户控制台:    console</span><br><span class="line">用户host:    NT AUTHORITY</span><br><span class="line">当前系统进程表中的用户名:    LOCAL SERVICE</span><br><span class="line">用户控制台:    console</span><br><span class="line">用户host:    NT AUTHORITY</span><br><span class="line">当前系统进程表中的用户名:    NETWORK SERVICE</span><br><span class="line">用户控制台:    console</span><br><span class="line">用户host:    MAOZW</span><br><span class="line">当前系统进程表中的用户名:    bjmaozhengwei</span><br><span class="line">用户控制台:    console</span><br><span class="line">用户host:    NT AUTHORITY</span><br><span class="line">当前系统进程表中的用户名:    SYSTEM</span><br><span class="line">----------------------------------</span><br><span class="line">分区的盘符名称0</span><br><span class="line">盘符名称:    C:\</span><br><span class="line">盘符路径:    C:\</span><br><span class="line">盘符标志:    0</span><br><span class="line">盘符类型:    NTFS</span><br><span class="line">盘符类型名:    local</span><br><span class="line">盘符文件系统类型:    2</span><br><span class="line">C:\总大小:    249223856KB</span><br><span class="line">C:\剩余大小:    174388564KB</span><br><span class="line">C:\可用大小:    174388564KB</span><br><span class="line">C:\已经使用量:    74835292KB</span><br><span class="line">C:\资源的利用率:    31.0%</span><br><span class="line">C:\读出：    218005</span><br><span class="line">C:\写入：    182290</span><br><span class="line">分区的盘符名称1</span><br><span class="line">盘符名称:    D:\</span><br><span class="line">盘符路径:    D:\</span><br><span class="line">盘符标志:    0</span><br><span class="line">盘符类型:    NTFS</span><br><span class="line">盘符类型名:    local</span><br><span class="line">盘符文件系统类型:    2</span><br><span class="line">D:\总大小:    511999996KB</span><br><span class="line">D:\剩余大小:    128315516KB</span><br><span class="line">D:\可用大小:    128315516KB</span><br><span class="line">D:\已经使用量:    383684480KB</span><br><span class="line">D:\资源的利用率:    75.0%</span><br><span class="line">D:\读出：    8369</span><br><span class="line">D:\写入：    32095</span><br><span class="line">分区的盘符名称2</span><br><span class="line">盘符名称:    E:\</span><br><span class="line">盘符路径:    E:\</span><br><span class="line">盘符标志:    0</span><br><span class="line">盘符类型:    NTFS</span><br><span class="line">盘符类型名:    local</span><br><span class="line">盘符文件系统类型:    2</span><br><span class="line">E:\总大小:    524287996KB</span><br><span class="line">E:\剩余大小:    112150660KB</span><br><span class="line">E:\可用大小:    112150660KB</span><br><span class="line">E:\已经使用量:    412137336KB</span><br><span class="line">E:\资源的利用率:    79.0%</span><br><span class="line">E:\读出：    7007</span><br><span class="line">E:\写入：    5429</span><br><span class="line">分区的盘符名称3</span><br><span class="line">盘符名称:    F:\</span><br><span class="line">盘符路径:    F:\</span><br><span class="line">盘符标志:    0</span><br><span class="line">盘符类型:    NTFS</span><br><span class="line">盘符类型名:    local</span><br><span class="line">盘符文件系统类型:    2</span><br><span class="line">F:\总大小:    707508220KB</span><br><span class="line">F:\剩余大小:    178179560KB</span><br><span class="line">F:\可用大小:    178179560KB</span><br><span class="line">F:\已经使用量:    529328660KB</span><br><span class="line">F:\资源的利用率:    75.0%</span><br><span class="line">F:\读出：    156493</span><br><span class="line">F:\写入：    259</span><br><span class="line">分区的盘符名称4</span><br><span class="line">盘符名称:    G:\</span><br><span class="line">盘符路径:    G:\</span><br><span class="line">盘符标志:    0</span><br><span class="line">盘符类型:    NTFS</span><br><span class="line">盘符类型名:    local</span><br><span class="line">盘符文件系统类型:    2</span><br><span class="line">G:\总大小:    209715196KB</span><br><span class="line">G:\剩余大小:    200712880KB</span><br><span class="line">G:\可用大小:    200712880KB</span><br><span class="line">G:\已经使用量:    9002316KB</span><br><span class="line">G:\资源的利用率:    5.0%</span><br><span class="line">G:\读出：    13</span><br><span class="line">G:\写入：    8</span><br><span class="line">----------------------------------</span><br><span class="line">网络设备名:    eth0</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">!IFF_UP...skipping getNetInterfaceStat</span><br><span class="line">网络设备名:    eth1</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">!IFF_UP...skipping getNetInterfaceStat</span><br><span class="line">网络设备名:    eth2</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">!IFF_UP...skipping getNetInterfaceStat</span><br><span class="line">网络设备名:    eth3</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth3接收的总包裹数:5062563</span><br><span class="line">eth3发送的总包裹数:9535859</span><br><span class="line">eth3接收到的总字节数:984412599</span><br><span class="line">eth3发送的总字节数:2225657021</span><br><span class="line">eth3接收到的错误包数:0</span><br><span class="line">eth3发送数据包时的错误数:0</span><br><span class="line">eth3接收时丢弃的包数:0</span><br><span class="line">eth3发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth4</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth4接收的总包裹数:5062563</span><br><span class="line">eth4发送的总包裹数:9535859</span><br><span class="line">eth4接收到的总字节数:984412599</span><br><span class="line">eth4发送的总字节数:2225657021</span><br><span class="line">eth4接收到的错误包数:0</span><br><span class="line">eth4发送数据包时的错误数:0</span><br><span class="line">eth4接收时丢弃的包数:0</span><br><span class="line">eth4发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth5</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth5接收的总包裹数:5062563</span><br><span class="line">eth5发送的总包裹数:9535859</span><br><span class="line">eth5接收到的总字节数:984412599</span><br><span class="line">eth5发送的总字节数:2225657021</span><br><span class="line">eth5接收到的错误包数:0</span><br><span class="line">eth5发送数据包时的错误数:0</span><br><span class="line">eth5接收时丢弃的包数:0</span><br><span class="line">eth5发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth6</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth6接收的总包裹数:0</span><br><span class="line">eth6发送的总包裹数:0</span><br><span class="line">eth6接收到的总字节数:0</span><br><span class="line">eth6发送的总字节数:0</span><br><span class="line">eth6接收到的错误包数:0</span><br><span class="line">eth6发送数据包时的错误数:0</span><br><span class="line">eth6接收时丢弃的包数:0</span><br><span class="line">eth6发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth7</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth7接收的总包裹数:0</span><br><span class="line">eth7发送的总包裹数:0</span><br><span class="line">eth7接收到的总字节数:0</span><br><span class="line">eth7发送的总字节数:0</span><br><span class="line">eth7接收到的错误包数:0</span><br><span class="line">eth7发送数据包时的错误数:0</span><br><span class="line">eth7接收时丢弃的包数:0</span><br><span class="line">eth7发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth8</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth8接收的总包裹数:0</span><br><span class="line">eth8发送的总包裹数:0</span><br><span class="line">eth8接收到的总字节数:0</span><br><span class="line">eth8发送的总字节数:0</span><br><span class="line">eth8接收到的错误包数:0</span><br><span class="line">eth8发送数据包时的错误数:0</span><br><span class="line">eth8接收时丢弃的包数:0</span><br><span class="line">eth8发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth9</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth9接收的总包裹数:0</span><br><span class="line">eth9发送的总包裹数:0</span><br><span class="line">eth9接收到的总字节数:0</span><br><span class="line">eth9发送的总字节数:0</span><br><span class="line">eth9接收到的错误包数:0</span><br><span class="line">eth9发送数据包时的错误数:0</span><br><span class="line">eth9接收时丢弃的包数:0</span><br><span class="line">eth9发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth10</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth10接收的总包裹数:0</span><br><span class="line">eth10发送的总包裹数:0</span><br><span class="line">eth10接收到的总字节数:0</span><br><span class="line">eth10发送的总字节数:0</span><br><span class="line">eth10接收到的错误包数:0</span><br><span class="line">eth10发送数据包时的错误数:0</span><br><span class="line">eth10接收时丢弃的包数:0</span><br><span class="line">eth10发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth11</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth11接收的总包裹数:0</span><br><span class="line">eth11发送的总包裹数:0</span><br><span class="line">eth11接收到的总字节数:0</span><br><span class="line">eth11发送的总字节数:0</span><br><span class="line">eth11接收到的错误包数:0</span><br><span class="line">eth11发送数据包时的错误数:0</span><br><span class="line">eth11接收时丢弃的包数:0</span><br><span class="line">eth11发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth12</span><br><span class="line">IP地址:    192.168.1.103</span><br><span class="line">子网掩码:    255.255.255.0</span><br><span class="line">eth12接收的总包裹数:5062563</span><br><span class="line">eth12发送的总包裹数:9535859</span><br><span class="line">eth12接收到的总字节数:984412599</span><br><span class="line">eth12发送的总字节数:2225657021</span><br><span class="line">eth12接收到的错误包数:0</span><br><span class="line">eth12发送数据包时的错误数:0</span><br><span class="line">eth12接收时丢弃的包数:0</span><br><span class="line">eth12发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth13</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">!IFF_UP...skipping getNetInterfaceStat</span><br><span class="line">网络设备名:    eth14</span><br><span class="line">IP地址:    192.169.0.1</span><br><span class="line">子网掩码:    255.255.255.0</span><br><span class="line">eth14接收的总包裹数:0</span><br><span class="line">eth14发送的总包裹数:1316</span><br><span class="line">eth14接收到的总字节数:0</span><br><span class="line">eth14发送的总字节数:1316</span><br><span class="line">eth14接收到的错误包数:0</span><br><span class="line">eth14发送数据包时的错误数:0</span><br><span class="line">eth14接收时丢弃的包数:0</span><br><span class="line">eth14发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth15</span><br><span class="line">IP地址:    192.168.0.1</span><br><span class="line">子网掩码:    255.255.255.0</span><br><span class="line">eth15接收的总包裹数:1</span><br><span class="line">eth15发送的总包裹数:2099</span><br><span class="line">eth15接收到的总字节数:1</span><br><span class="line">eth15发送的总字节数:2099</span><br><span class="line">eth15接收到的错误包数:0</span><br><span class="line">eth15发送数据包时的错误数:0</span><br><span class="line">eth15接收时丢弃的包数:0</span><br><span class="line">eth15发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth16</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">!IFF_UP...skipping getNetInterfaceStat</span><br><span class="line">网络设备名:    eth17</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth17接收的总包裹数:0</span><br><span class="line">eth17发送的总包裹数:0</span><br><span class="line">eth17接收到的总字节数:0</span><br><span class="line">eth17发送的总字节数:0</span><br><span class="line">eth17接收到的错误包数:0</span><br><span class="line">eth17发送数据包时的错误数:0</span><br><span class="line">eth17接收时丢弃的包数:0</span><br><span class="line">eth17发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth18</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth18接收的总包裹数:0</span><br><span class="line">eth18发送的总包裹数:0</span><br><span class="line">eth18接收到的总字节数:0</span><br><span class="line">eth18发送的总字节数:0</span><br><span class="line">eth18接收到的错误包数:0</span><br><span class="line">eth18发送数据包时的错误数:0</span><br><span class="line">eth18接收时丢弃的包数:0</span><br><span class="line">eth18发送时丢弃的包数:0</span><br><span class="line">网络设备名:    eth19</span><br><span class="line">IP地址:    0.0.0.0</span><br><span class="line">子网掩码:    0.0.0.0</span><br><span class="line">eth19接收的总包裹数:0</span><br><span class="line">eth19发送的总包裹数:0</span><br><span class="line">eth19接收到的总字节数:0</span><br><span class="line">eth19发送的总字节数:0</span><br><span class="line">eth19接收到的错误包数:0</span><br><span class="line">eth19发送数据包时的错误数:0</span><br><span class="line">eth19接收时丢弃的包数:0</span><br><span class="line">eth19发送时丢弃的包数:0</span><br><span class="line">网络设备名:    lo0</span><br><span class="line">IP地址:    127.0.0.1</span><br><span class="line">子网掩码:    255.0.0.0</span><br><span class="line">lo0接收的总包裹数:0</span><br><span class="line">lo0发送的总包裹数:0</span><br><span class="line">lo0接收到的总字节数:0</span><br><span class="line">lo0发送的总字节数:0</span><br><span class="line">lo0接收到的错误包数:0</span><br><span class="line">lo0发送数据包时的错误数:0</span><br><span class="line">lo0接收时丢弃的包数:0</span><br><span class="line">lo0发送时丢弃的包数:0</span><br><span class="line">----------------------------------</span><br><span class="line">eth0IP地址:0.0.0.0</span><br><span class="line">eth0网关广播地址:0.0.0.0</span><br><span class="line">eth0网卡MAC地址:00:FF:2F:EC:E8:5F</span><br><span class="line">eth0子网掩码:0.0.0.0</span><br><span class="line">eth0网卡描述信息:Sangfor SSL VPN CS Support System VNIC-WFP Native MAC Layer LightWeight Filter-0000</span><br><span class="line">eth0网卡类型Ethernet</span><br><span class="line">eth1IP地址:0.0.0.0</span><br><span class="line">eth1网关广播地址:0.0.0.0</span><br><span class="line">eth1网卡MAC地址:00:FF:2F:EC:E8:5F</span><br><span class="line">eth1子网掩码:0.0.0.0</span><br><span class="line">eth1网卡描述信息:Sangfor SSL VPN CS Support System VNIC-QoS Packet Scheduler-0000</span><br><span class="line">eth1网卡类型Ethernet</span><br><span class="line">eth2IP地址:0.0.0.0</span><br><span class="line">eth2网关广播地址:0.0.0.0</span><br><span class="line">eth2网卡MAC地址:00:FF:2F:EC:E8:5F</span><br><span class="line">eth2子网掩码:0.0.0.0</span><br><span class="line">eth2网卡描述信息:Sangfor SSL VPN CS Support System VNIC-WFP 802.3 MAC Layer LightWeight Filter-0000</span><br><span class="line">eth2网卡类型Ethernet</span><br><span class="line">eth3IP地址:0.0.0.0</span><br><span class="line">eth3网关广播地址:0.0.0.0</span><br><span class="line">eth3网卡MAC地址:30:5A:3A:4C:8D:6C</span><br><span class="line">eth3子网掩码:0.0.0.0</span><br><span class="line">eth3网卡描述信息:Realtek PCIe GBE Family Controller-WFP Native MAC Layer LightWeight Filter-0000</span><br><span class="line">eth3网卡类型Ethernet</span><br><span class="line">eth4IP地址:0.0.0.0</span><br><span class="line">eth4网关广播地址:0.0.0.0</span><br><span class="line">eth4网卡MAC地址:30:5A:3A:4C:8D:6C</span><br><span class="line">eth4子网掩码:0.0.0.0</span><br><span class="line">eth4网卡描述信息:Realtek PCIe GBE Family Controller-QoS Packet Scheduler-0000</span><br><span class="line">eth4网卡类型Ethernet</span><br><span class="line">eth5IP地址:0.0.0.0</span><br><span class="line">eth5网关广播地址:0.0.0.0</span><br><span class="line">eth5网卡MAC地址:30:5A:3A:4C:8D:6C</span><br><span class="line">eth5子网掩码:0.0.0.0</span><br><span class="line">eth5网卡描述信息:Realtek PCIe GBE Family Controller-WFP 802.3 MAC Layer LightWeight Filter-0000</span><br><span class="line">eth5网卡类型Ethernet</span><br><span class="line">eth12IP地址:192.168.1.103</span><br><span class="line">eth12网关广播地址:192.168.1.255</span><br><span class="line">eth12网卡MAC地址:30:5A:3A:4C:8D:6C</span><br><span class="line">eth12子网掩码:255.255.255.0</span><br><span class="line">eth12网卡描述信息:Realtek PCIe GBE Family Controller</span><br><span class="line">eth12网卡类型Ethernet</span><br><span class="line">eth14IP地址:192.169.0.1</span><br><span class="line">eth14网关广播地址:192.169.0.255</span><br><span class="line">eth14网卡MAC地址:00:50:56:C0:00:01</span><br><span class="line">eth14子网掩码:255.255.255.0</span><br><span class="line">eth14网卡描述信息:VMware Virtual Ethernet Adapter for VMnet1</span><br><span class="line">eth14网卡类型Ethernet</span><br><span class="line">eth15IP地址:192.168.0.1</span><br><span class="line">eth15网关广播地址:192.168.0.255</span><br><span class="line">eth15网卡MAC地址:00:50:56:C0:00:08</span><br><span class="line">eth15子网掩码:255.255.255.0</span><br><span class="line">eth15网卡描述信息:VMware Virtual Ethernet Adapter for VMnet8</span><br><span class="line">eth15网卡类型Ethernet</span><br><span class="line">eth16IP地址:0.0.0.0</span><br><span class="line">eth16网关广播地址:0.0.0.0</span><br><span class="line">eth16网卡MAC地址:00:FF:2F:EC:E8:5F</span><br><span class="line">eth16子网掩码:0.0.0.0</span><br><span class="line">eth16网卡描述信息:Sangfor SSL VPN CS Support System VNIC</span><br><span class="line">eth16网卡类型Ethernet</span><br><span class="line">----------------------------------</span><br></pre></td></tr></table></figure>
</the>
      
    </div>
    
  </div>
  
    
    <div class="copyright">
        <p><span>本文标题:</span><a href="/maoge-blog/2018/08/05/花神(maoge)/11.服务器相关/1.服务器--Sigar 获取CPU和Memory内存等信息使用详解/">1.Sigar 获取CPU和Memory内存等信息使用详解</a></p>
        <p><span>文章作者:</span><a href="/" title="回到主页">zhengweiMao</a></p>
        <p><span>发布时间:</span>2018-08-05, 03:09:50</p>
        <p><span>最后更新:</span>2018-08-06, 23:24:27</p>
        <p>
            <span>原始链接:</span><a class="post-url" href="/maoge-blog/2018/08/05/花神(maoge)/11.服务器相关/1.服务器--Sigar 获取CPU和Memory内存等信息使用详解/" title="1.Sigar 获取CPU和Memory内存等信息使用详解">https://maozw.gitee.io/maoge-blog/2018/08/05/花神(maoge)/11.服务器相关/1.服务器--Sigar 获取CPU和Memory内存等信息使用详解/</a>
            <span class="copy-path" data-clipboard-text="原文: https://maozw.gitee.io/maoge-blog/2018/08/05/花神(maoge)/11.服务器相关/1.服务器--Sigar 获取CPU和Memory内存等信息使用详解/　　作者: zhengweiMao" title="点击复制文章链接"><i class="fa fa-clipboard"></i></span>
            <script> var clipboard = new Clipboard('.copy-path'); </script>
        </p>
        <p>
            <span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" title="CC BY-NC-SA 4.0 International" target = "_blank">"署名-非商用-相同方式共享 4.0"</a> 转载请保留原文链接及作者。
        </p>
    </div>



    <nav id="article-nav">
        
            <div id="article-nav-newer" class="article-nav-title">
                <a href="/maoge-blog/2018/08/05/花神(maoge)/11.java-reflections/2.反射框架--reflections-抓取实例/">
                    1.反射框架--reflections-抓取实例
                </a>
            </div>
        
        
            <div id="article-nav-older" class="article-nav-title">
                <a href="/maoge-blog/2018/08/05/花神(maoge)/11.java-reflections/1.反射框架--reflections-基本介绍/">
                    1.反射框架--reflections-基本介绍
                </a>
            </div>
        
    </nav>

  
</article>

    <div id="toc" class="toc-article">
        <strong class="toc-title">文章目录</strong>
        
            <ol class="toc"><li class="toc-item toc-level-3"><a class="toc-link" href="#1-Sigar-获取CPU和Memory内存等信息使用详解"><span class="toc-number">1.</span> <span class="toc-text">1.Sigar 获取CPU和Memory内存等信息使用详解</span></a><ol class="toc-child"><li class="toc-item toc-level-5"><a class="toc-link" href="#序言"><span class="toc-number">1.0.1.</span> <span class="toc-text">序言</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#Sigar详细介绍"><span class="toc-number">1.0.2.</span> <span class="toc-text">Sigar详细介绍</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#下面我们看下示例："><span class="toc-number">1.0.3.</span> <span class="toc-text">下面我们看下示例：</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#好了废话不多说了-直接上代码。"><span class="toc-number">1.0.4.</span> <span class="toc-text">好了废话不多说了 直接上代码。</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#输出结果："><span class="toc-number">1.0.5.</span> <span class="toc-text">输出结果：</span></a></li></ol></li></ol></li></ol>
        
    </div>
    <style>
        .left-col .switch-btn,
        .left-col .switch-area {
            display: none;
        }
        .toc-level-3 i,
        .toc-level-3 ol {
            display: none !important;
        }
    </style>

    <input type="button" id="tocButton" value="隐藏目录"  title="点击按钮隐藏或者显示文章目录">

    <script>
        yiliaConfig.toc = ["隐藏目录", "显示目录", !!"false"];
    </script>



    
<div class="share">
    
        <div class="bdsharebuttonbox">
            <a href="#" class="fa fa-twitter bds_twi" data-cmd="twi" title="分享到推特"></a>
            <a href="#" class="fa fa-weibo bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
            <a href="#" class="fa fa-qq bds_sqq" data-cmd="sqq" title="分享给 QQ 好友"></a>
            <a href="#" class="fa fa-files-o bds_copy" data-cmd="copy" title="复制网址"></a>
            <a href="#" class="fa fa fa-envelope-o bds_mail" data-cmd="mail" title="通过邮件分享"></a>
            <a href="#" class="fa fa-weixin bds_weixin" data-cmd="weixin" title="生成文章二维码"></a>
            <a href="#" class="fa fa-share-alt bds_more" data-cmd="more"></i></a>
        </div>
        <script>
            window._bd_share_config={
                "common":{"bdSnsKey":{},"bdText":"1.Sigar 获取CPU和Memory内存等信息使用详解　| 花神　","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
        </script>
    

    
</div>







    




    <div class="scroll" id="post-nav-button">
        
            <a href="/maoge-blog/2018/08/05/花神(maoge)/11.java-reflections/2.反射框架--reflections-抓取实例/" title="上一篇: 1.反射框架--reflections-抓取实例">
                <i class="fa fa-angle-left"></i>
            </a>
        

        <a title="文章列表"><i class="fa fa-bars"></i><i class="fa fa-times"></i></a>

        
            <a href="/maoge-blog/2018/08/05/花神(maoge)/11.java-reflections/1.反射框架--reflections-基本介绍/" title="下一篇: 1.反射框架--reflections-基本介绍">
                <i class="fa fa-angle-right"></i>
            </a>
        
    </div>

    <ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/05/花神(maoge)/9.Spring/SpringBoot/SpringBoot-启动源码解析/">1.SpringBoot源码分析之SpringBoot的启动过程</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/05/花神(maoge)/11.java-reflections/2.反射框架--reflections-抓取实例/">1.反射框架--reflections-抓取实例</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/05/花神(maoge)/11.服务器相关/1.服务器--Sigar 获取CPU和Memory内存等信息使用详解/">1.Sigar 获取CPU和Memory内存等信息使用详解</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/05/花神(maoge)/11.java-reflections/1.反射框架--reflections-基本介绍/">1.反射框架--reflections-基本介绍</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/05/花神(maoge)/10.算法/算法----外部排序/">2.算法 -外部排序</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/05/花神(maoge)/10.算法/算法----snowflake/">1.算法 -snowflake</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/05/花神(maoge)/8.面试/面试/">1.面试</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/01/花神(maoge)/6.quartz--定时任务框架/7.Quartz-Job状态与并发/">7.任务调度框架Quartz-Job状态与并发</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/01/花神(maoge)/6.quartz--定时任务框架/6.任务调度框架Quartz-config/">5.任务调度框架Quartz-Quartz-Job Stores</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/01/花神(maoge)/6.quartz--定时任务框架/5.任务调度框架Quartz-Job Stores/">5.任务调度框架Quartz-Quartz-Job Stores</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/01/花神(maoge)/6.quartz--定时任务框架/4.任务调度框架Quartz-SchedulerListeners/">4.任务调度框架Quartz-SchedulerListeners</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/01/花神(maoge)/6.quartz--定时任务框架/3.任务调度框架Quartz-TriggerListeners和JobListeners/">3.任务调度框架Quartz-Triggers-SimpleTrigger</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/01/花神(maoge)/6.quartz--定时任务框架/2-3.任务调度框架Quartz-Triggers-CronTrigger/">2-2.任务调度框架Quartz-Triggers-CronTrigger</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/01/花神(maoge)/6.quartz--定时任务框架/2-2.任务调度框架Quartz-Triggers-SimpleTrigger/">2-2.任务调度框架Quartz-Triggers-SimpleTrigger</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/01/花神(maoge)/6.quartz--定时任务框架/2-1.任务调度框架Quartz-Triggers详解理解/">2-1.任务调度框Quartz-Triggers详解理解</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/08/01/花神(maoge)/6.quartz--定时任务框架/1.任务调度框架Quartz-入门/">1.任务调度框架Quartz-入门</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/12/花神(maoge)/9.Spring/SpringMVC--源码解读/05.SpringMVC-----源码分析与实践--HandlerMapping(1)/">1.SpringMVC -源码分析与实践-HandlerMapping</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/12/花神(maoge)/9.Spring/SpringMVC--源码解读/04.SpringMVC-----源码分析与实践--DispatcherServlet核心/">4.SpringMVC -源码分析与实践-DispatcherServlet</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/12/花神(maoge)/9.Spring/SpringMVC--源码解读/03.SpringMVC-----源码分析与实践--初始化分析/">3.SpringMVC -初始化源码分析</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/12/花神(maoge)/9.Spring/SpringMVC--源码解读/02.SpringMVC-----源码分析与实践--环境搭建/">2.SpringMVC -源码分析与实践--环境搭建</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/12/花神(maoge)/7.JAVA_WEB相关技术/1.基于AsyncRestTemplate异步HTTP请求的一种轻量级技术实现/">1.基于AsyncRestTemplate异步HTTP请求的一种轻量级技术实</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/12/花神(maoge)/9.Spring/SpringMVC--源码解读/01.SpringMVC-----源码分析与实践----初步认知/">1.SpringMVC -源码分析与实践----初步认知</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/20.并发编程--并发框架-Disruptor--应用示例3/">20.并发编程--并发框架-Disruptor--应用示例3</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/19.并发编程--并发框架-Disruptor--应用示例2/">19并发编程--并发框架-Disruptor--应用示例2</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/18.并发编程--并发框架-Disruptor--应用示例1/">18.并发编程--并发框架-Disruptor--应用示例1</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/17.并发编程--并发框架-Disruptor--术语介绍/">17.并发编程--并发框架-Disruptor--介绍</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/16.并发编程--并发框架-Disruptor--入门介绍/">16.并发编程--并发框架-Disruptor--介绍</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/15.并发编程--锁-介绍/">15.并发编程--锁-介绍</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/14.并发编程--Concurrent-工具类/">14.并发编程--Concurrent-工具类介绍</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/13.并发编程--线程池介绍/">13. 并发编程--线程池</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/12.并发编程--多线程设计模式 - 生产者-消费者模式/">12并发编程\12.并发编程--多线程设计模式 - 生产者-消费者模式</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/11.并发编程--多线程设计模式 - Master-Worker模式/">11多线程设计模式 - Master-Worker模式</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/7.并发编程--单例模式(饥饿模式-懒汉模式)/">7.并发编程--单例模式(饥饿模式-懒汉模式)</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/10.并发编程--多线程设计模式 - Future模式/">10 多线程设计模式 - Future模式</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/8.并发编程--同步类容器和并发类容器/">8并发编程--同步类容器和并发类容器</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/6.并发编程--ThreadLocal/">6.并发编程--ThreadLocal</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/9.并发编程--Queue/">9并发编程--Queue</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/5.并发编程--多线程通信-wait-notify-模拟Queue/">并发编程--多线程通信-wait-notify-模拟Queue</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/4-2.并发编程--多线程通信-wait-notify-notifyAll-join/">4-2.并发编程--并发编程--多线程通信-wait-notify-notifyAll-join</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/4-1.并发编程--多线程通信-wait-notify/">4.并发编程--多线程通信-wait-notify</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/1.并发编程--线程基础/">并发编程--线程基础</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/3.并发编程--volatile 细节说明/">并发编程--volatile</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/2.并发编程-synchronized 细节说明/">并发编程-synchronized 细节说明</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/07/05/花神(maoge)/1.并发编程/0.并发编程-readMe/">并发编程</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/0.并发编程-readMe/">网络编程</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/13.网络编程--Netty-文件的上传和下载/">13.网络编程--Netty-文件的上传和下载</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/14.网络编程--mina-入门/">14.网络编程--mina-入门</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/12.网络编程--Netty-实践-心跳检测/">12.网络编程--Netty-实践-心跳检测</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/11.网络编程--Netty-实践-数据通信/">11.网络编程--Netty-实践-数据通信+心跳检测</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/10.网络编程--Netty-基础-WebSocket/">10.网络编程--Netty-基础-WebSocket</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/9.网络编程--Netty-基础-UDP/">9.网络编程--Netty-UDP</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/8.网络编程--Netty-基础-拆包粘包-2/">8.网络编程--Netty-拆包粘包</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/7.网络编程--Netty-基础-拆包粘包-1/">7.网络编程--Netty-拆包粘包</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/6.网络编程--Netty-基础-HelloWorld/">6.网络编程--Netty-HelloWorld</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/5.网络编程--Netty-基础-入门/">5.网络编程--Netty-入门</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/4.网络编程--基础-AIO异步实现/">4.网络编程--基础-AIO异步实现</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/3.网络编程--基础-NIO异步实现/">3.网络编程--基础-NIO异步实现</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/2.网络编程--基础-BIO伪异步实现/">网络编程--基础</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/05/05/花神(maoge)/2.网络编程/1.网络编程--基础-socket/">网络编程--基础</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/04/05/花神(maoge)/5.分布式--zookeeper/2.zookeeper--集群搭建/">2.分布式--zookeeper\2.zookeeper--集群搭建</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/04/05/花神(maoge)/5.分布式--zookeeper/1.zookeeper--简介/">1.分布式--zookeeper--zookeeper简介</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/02/05/花神(maoge)/4.JVM相关/1.jvm虚拟机组成部分/">1.jvm虚拟机组成部分</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/02/05/花神(maoge)/3.缓存-中间件/Redis 配置文件说明/">Redis集群搭建-配置文件</a></li><li class="post-list-item"><a class="post-list-link" href="/maoge-blog/2018/02/05/花神(maoge)/3.缓存-中间件/Redis----集群搭建/">Redis集群搭建-实践</a></li></ul>




    <script>
        
    </script>
</div>
      <footer id="footer">
    <div class="outer">
        <div id="footer-info">
            <div class="footer-left">
                <i class="fa fa-copyright"></i> 
                2016-2018 zhengweiMao
            </div>
            <div class="footer-right">
                <a href="http://hexo.io/" target="_blank" title="快速、简洁且高效的博客框架">Hexo</a>  Theme <a href="https://github.com/MOxFIVE/hexo-theme-yelee" target="_blank" title="简而不减 Hexo 双栏博客主题  v3.5">Yelee</a> by MOxFIVE <i class="fa fa-heart animated infinite pulse"></i>
            </div>
        </div>
        
            <div class="visit">
                
                    <span id="busuanzi_container_site_pv" style='display:none'>
                        <span id="site-visit" title="本站到访数"><i class="fa fa-user" aria-hidden="true"></i><span id="busuanzi_value_site_uv"></span>
                        </span>
                    </span>
                
                
                    <span>| </span>
                
                
                    <span id="busuanzi_container_page_pv" style='display:none'>
                        <span id="page-visit"  title="本页阅读量"><i class="fa fa-eye animated infinite pulse" aria-hidden="true"></i><span id="busuanzi_value_page_pv"></span>
                        </span>
                    </span>
                
            </div>
        
    </div>
</footer>
    </div>
    
<script data-main="/maoge-blog/js/main.js" src="//cdn.bootcss.com/require.js/2.2.0/require.min.js"></script>

    <script>
        $(document).ready(function() {
            var iPad = window.navigator.userAgent.indexOf('iPad');
            if (iPad > -1 || $(".left-col").css("display") === "none") {
                var bgColorList = ["#9db3f4", "#414141", "#e5a859", "#f5dfc6", "#c084a0", "#847e72", "#cd8390", "#996731"];
                var bgColor = Math.ceil(Math.random() * (bgColorList.length - 1));
                $("body").css({"background-color": bgColorList[bgColor], "background-size": "cover"});
            }
            else {
                var backgroundnum = 5;
                var backgroundimg = "url(/background/bg-x.jpg)".replace(/x/gi, Math.ceil(Math.random() * backgroundnum));
                $("body").css({"background": backgroundimg, "background-attachment": "fixed", "background-size": "cover"});
            }
        })
    </script>





<div class="scroll" id="scroll">
    <a href="#" title="返回顶部"><i class="fa fa-arrow-up"></i></a>
    <a href="#comments" onclick="load$hide();" title="查看评论"><i class="fa fa-comments-o"></i></a>
    <a href="#footer" title="转到底部"><i class="fa fa-arrow-down"></i></a>
</div>
<script>
    // Open in New Window
    
        var oOpenInNew = {
            
            
            
            
            
            
             archives: ".archive-article-title", 
             miniArchives: "a.post-list-link", 
            
             friends: "#js-friends a", 
             socail: ".social a" 
        }
        for (var x in oOpenInNew) {
            $(oOpenInNew[x]).attr("target", "_blank");
        }
    
</script>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
  </div>
</body>
</html>